<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile" contentType="text/html" renderKitId="PRIMEFACES_MOBILE">
	<pm:page title="Login" loadingMessage="Loading">
		#{cMobileLoginAction.clear()}
		<pm:view id="loginView">
			<pm:header title="Login" />
			<pm:content>
				<h:form id="myForm">
					<p:inputText label="Username" value="#{cMobileLoginForm.username}" />
					<p:inputText label="Password" value="#{cMobileLoginForm.password}" type="password" />
					<pm:switch onLabel="Waiter" offLabel="Cooker" label="Type" value="#{cMobileLoginForm.loginType}" />
					<p:commandButton value="Login" action="#{cMobileLoginAction.login()}" update=":myForm" />
					<h:outputText value="Error : Username or password is invalid." rendered="#{cMobileLoginForm.errorMessage}"
						id="errorMessage" />
				</h:form>
			</pm:content>
		</pm:view>
	</pm:page>
</f:view>